<#include "../header.ftl">
<script type="text/javascript">
	    $(function(){
	    $(".datepicker").datepicker({maxDate:new Date()});
	    $.datepicker.setDefaults($.datepicker.regional['zh-CN']);
		});
		
		function addNum(){
			$.post(
				'add.shtml', 
				{id: $("#id").val(),num: $("#num").val(),type:'add'}, 
				function(data) {
					if(data.split(":").length>1){
						$("#id").val(parseInt(data.split(":")[0])+1);
						$("#num").val("");
					}
				    alert(data);
				}
			);
		}
    </script>
	<div class="cright">
	<label class="error"><#if errormessage??>${errormessage}</#if></label>
	
	<div class="dataline">
		<div>添加号码</div>
	</div>
	<div class="datacontent">
	<table>
		<tr>
			<td  width="10%"></td>
		</tr>
	</table>
	</div>
	<div class="search">
			<div class="searchinput">
				期号：<input size="10" name="id" id="id" value="${maxId + 1}"  type="text" />&nbsp;&nbsp;
				开奖号：<input size="30" name="num" id="num"  type="text" />
			</div>
			<div class="searchimg" onclick="addNum()">添加</div>
	</div>
	
</div>
<#include "../footer.ftl">
</body>
	
</html>	